import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';

// UnoCSS 生成的样式
import '@unocss/reset/normalize.css';
import 'uno.css';
import './styles/index.less';

// 注册自定义svg组件
import 'virtual:svg-icons-register';

/**全局数据 */
import { Provider } from 'react-redux';
import { store, persistor } from './store';
import { PersistGate } from 'redux-persist/lib/integration/react';

ReactDOM.createRoot(document.getElementById('root')).render(
	// react严格模式
	// <React.StrictMode>
	<Provider store={store}>
		<PersistGate loading={null} persistor={persistor}>
			<App />
		</PersistGate>
	</Provider>
	// </React.StrictMode>
);
